<!DOCTYPE html>
<html>
<head>
    <title>工厂订单</title>
    <#include "/header.html">
    <!-- 文件上传 -->
    <link rel="stylesheet" href="${request.contextPath}/statics/plugins/oss/style.css">
    <script type="text/javascript" src="${request.contextPath}/statics/plugins/oss/js/plupload.full.min.js"></script>
    <script type="text/javascript" src="${request.contextPath}/statics/plugins/oss/ziyun_library.js"></script>
</head>
<style>
    #rrapp{
        word-break:break-all;
        overflow-x: hidden;
    }
    a:link,a:visited{
        text-decoration:none;
    }
    .panel table tr td{
        vertical-align: middle !important;
    }
    .ui li {
        margin: 0;
        padding: 0;
        list-style: none
    }
    input {
        background: 0 0;
        border: none
    }

    html {
        overflow-x: hidden;
        font-family: "微软雅黑"
    }

    a {
        text-decoration: none
    }

    ol, ul {
        list-style-type: none
    }

    img, input, select {
        vertical-align: middle;
        outline: 0
    }

    a {
        text-decoration: none
    }

    .tab_head {
        background: #F3F3F3;
        padding: 10px;
    }

    .tab_cn {
        padding: 15px;
    }

    .tab_cn table {
        width: 100%;
        border-collapse: collapse;
    }

    .tab_cn table tr td {
        border: 1px solid #898989;
    }

    .tab_cn table tr td i {
        display: inline-block;
        padding: 25px 0px;
        text-align: center;
        width: 140px;
        border-right: 1px solid #898989;
    }

    .tab_cn table tr td span {
        display: inline-block;
    }

    .tab_cn .table tr td {
        padding: 5px;
        0px;
    }
</style>
<body>

<div id="rrapp" v-cloak>

    <!-- 列表 -->
    <div v-show="showList">
        <!-- 查询 start -->
        <div class="grid-btn">
            <form class="form-inline" role="form">

                <a class="btn btn-default btn-sm" @click="reset"><i class="fa fa-refresh"></i></a>

                <a class="btn btn-primary btn-sm" @click="send">添加物流</a>

                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model.trim="q.orderId" @keyup.enter="query" placeholder="订单号">
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model.trim="q.memberName" @keyup.enter="query" placeholder="会员名">
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.status" @keyup.enter="query">
                        <option value="">订单状态</option>
                        <option v-for="item in e.orderInfoStatusEnum" :value="item.value">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.orderPayStatus" @keyup.enter="query">
                        <option value="">支付状态</option>
                        <option value="1">未支付</option>
                        <option value="2">已支付</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.shipStatus" @keyup.enter="query">
                        <option value="">发货状态</option>
                        <option value="0">未发货</option>
                        <option value="1">已发货</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.productionStatus" @keyup.enter="query">
                        <option value="">生产状态</option>
                        <option value="1">待接单</option>
                        <option value="3">生产中</option>
                        <option value="4">生产完成</option>
                        <option value="6">已完成</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;

                <div class="form-group">
                    <input class="form-control input-sm" v-model="q.beginCreatetime" style="width: 120px;" @keyup.enter="query" @click = "checkBeginDate" placeholder="开始时间"/>
                    至
                    <input class="form-control input-sm" v-model="q.endCreatetime" style="width: 120px;"@keyup.enter="query" @click = "checkEndDate" placeholder="结束时间"/>
                </div>&nbsp;&nbsp;&nbsp;

                <a class="btn btn-default btn-sm"  @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
            </form>
        </div>
        <!-- 查询 end -->
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>

    </div>

    <!-- 订单详情 -->
    <div v-show="showOrder">
        <!-- 操作 start-->
        <div class="panel-default" style="display: block;" align="center">
            <div style="padding: 5px 0;" class="container">
                <div class="row">
                    <div class="col-md-6 col-md-offset-3">
                        <div class="btn-group btn-group-sm">
                            <button type="button" class="btn btn-default" style="width: 100px;height: 30px;" @click="reload">返回</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 操作 end-->

        <!-- 订单信息 start -->
        <div style="margin-bottom: 5px;">
            <span style="margin-left: 10px;"><strong>订单信息</strong></span>
        </div>
        <div class="panel panel-default">
            <table class="table">
                <tbody>
                <tr class="active">
                    <td>&nbsp;&nbsp;&nbsp;{{orderInfo.createtime}} &nbsp;&nbsp;&nbsp; 订单编号：{{orderInfo.orderId}}</td>
                </tr>
                </tbody>
            </table>
            <div class="panel-body">
                <div class="row">
                    <div class="col-md-3">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="col-md-2 control-label">会员名：</div>
                                <div class="col-md-5">
                                    <span>{{orderInfo.memberName}}</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">收货人：</div>
                                <div class="col-md-5">
                                    <span>{{orderInfo.shipName}}</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">联系方式：</div>
                                <div class="col-md-5"><span>{{orderInfo.shipMobile}}</span></div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">交货时间：</div>
                                <div class="col-md-5">
                                    <span>{{orderInfo.shipTime}}</span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-3">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="col-md-2 control-label">配送方式：</div>
                                <div class="col-md-6">
                                    <span>{{orderInfo.pickUp == true ? '自提' : '非自提'}}</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">配送地区：</div>
                                <div class="col-md-6"><span>{{orderInfo.shipArea}}</span></div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">地址：</div>
                                <div class="col-md-6"><span>{{orderInfo.shipAddr}}</span></div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">邮编：</div>
                                <div class="col-md-6"><span>{{orderInfo.shipZip}}</span></div>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-3">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="col-md-2 control-label">配送报价：</div>
                                <div class="col-md-5">
                                    <span>{{orderInfo.costFreight}}</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">商品重量：</div>
                                <div class="col-md-5">
                                    <span>{{orderInfo.weight <= 0 ?  '' : orderInfo.weight}}</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-2 control-label">获得积分：</div>
                                <div class="col-md-5">
                                    <span>{{orderInfo.scoreG}}</span>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-3">
                        <form class="form-horizontal">
                            <div class="form-group">
                                <div class="col-md-2 control-label">顾客备注：</div>
                                <div class="col-md-6">
                                    <span>{{orderInfo.memo}}</span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <!-- 订单信息 end -->

        <!-- 商品信息 start -->
        <div style="margin-bottom: 5px;">
            <span style="margin-left: 10px;"><strong>商品信息</strong></span>
        </div>
        <div class="panel panel-default">
            <table class="table table-bordered">
                <tbody>
                <tr class="text-center active">
                    <td width="5%">序号</td>
                    <td width="5%">SPU</td>
                    <td>商品名称</td>
                    <td>是否加急</td>
                    <td width="30%">规格/尺寸/材质/工艺</td>
                    <td>类型</td>
                    <td>数量</td>
                    <td>单位</td>
                    <td>金额</td>
                    <td>制作工序</td>
                    <td width="10%">源文件</td>
                </tr>
                <tr class="text-center" v-for="(orderItem, index) in orderItemList">
                    <td>{{index+1}}</td>
                    <td>{{orderItem.goodsId}}</td>
                    <td>{{orderItem.name}}</td>
                    <td>
                        <span style="color: red" v-if="orderItem.urgent">是</span>
                        <span v-else>否</span>
                    </td>
                    <td style="text-align:left;">{{orderItem.addon}}</td>
                    <td>
                        <template v-for="item in e.goodsTypeEnum">
                            <template v-if="orderItem.goodsType == item.value">
                                {{item.describe}}
                            </template>
                        </template>
                    </td>
                    <td>{{orderItem.nums}}</td>
                    <td>{{orderItem.unit}}</td>
                    <td>{{orderItem.amount}}</td>
                    <td>{{procedure}}</td>
                    <td>
                        <el-badge :value="orderItem.fileNums" class="item">
                            <el-button size="mini" type="text" @click="itemFileShow(index)" icon="el-icon-download">下载</el-button>
                        </el-badge>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 商品信息 end -->

        <!-- 费用明细 start -->
        <div style="margin-bottom: 5px;">
            <span style="margin-left: 10px;"><strong>费用明细</strong></span>
        </div>
        <div class="panel panel-default">
            <table class="table table-bordered">
                <tbody>
                <tr class="text-center active">
                    <td>商品总额</td>
                    <td>配送费用</td>
                    <td>调价</td>
                    <td>商品促销优惠</td>
                    <td>优惠券</td>
                    <td>随机立减</td>
                    <td>运费保险</td>
                    <td>应支付额</td>
                    <td>已支付额</td>
                </tr>
                <tr class="text-center">
                    <td>{{orderInfo.totalAmount}}</td>
                    <td>{{orderInfo.costFreight}}</td>
                    <td>{{orderInfo.discount}}</td>
                    <td>{{orderInfo.pmtGoods}}</td>
                    <td>{{orderInfo.pmtOrder}}</td>
                    <td>{{orderInfo.pmtRandom}}</td>
                    <td></td>
                    <td>{{orderInfo.payableAmount}}</td>
                    <td>{{orderInfo.payed}}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 费用明细 end -->

        <!-- 支付信息 start -->
        <div style="margin-bottom: 5px;">
            <span style="margin-left: 10px;"><strong>支付信息</strong></span>
        </div>
        <div class="panel panel-default">
            <table class="table table-bordered">
                <tbody>
                <tr class="text-center active">
                    <td>支付单号</td>
                    <td>支付类型</td>
                    <td>支付金额</td>
                    <td>支付时间</td>
                </tr>
                <tr class="text-center" v-for="(userPayment, index) in userPaymentList">
                    <td>{{userPayment.paymentId}}</td>
                    <td>{{userPayment.payName}}</td>
                    <td>{{userPayment.money}}</td>
                    <td>{{userPayment.tpayed}}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 支付信息 end -->

        <!-- 发票信息 start -->
        <div style="margin-bottom: 5px;">
            <span style="margin-left: 10px;"><strong>发票信息</strong></span>
        </div>
        <div class="panel panel-default">
            <table class="table table-bordered">
                <tbody>
                <tr class="text-center active">
                    <td>发票类型</td>
                    <td>纳税人识别号</td>
                    <td>发票内容</td>
                    <td>注册地址</td>
                    <td>发票抬头</td>
                    <td>注册电话</td>
                    <!--<td>发票种类</td>-->
                    <td>开户银行</td>
                    <td>银行账户</td>
                    <!--<td>税金</td>-->
                </tr>
                <tr class="text-center">
                    <td>
                        <template v-for="item in e.taxTypeEnum">
                            <template v-if="item.value == orderInfo.taxType">
                                {{item.describe}}
                            </template>
                        </template>
                    </td>
                    <td>{{orderInfo.taxIdentification}}</td>
                    <td>{{orderInfo.taxContent}}</td>
                    <td>{{orderInfo.taxAddr}}</td>
                    <td>{{orderInfo.taxCompany}}</td>
                    <td>{{orderInfo.taxTel}}</td>
                    <td>{{orderInfo.taxAccountName}}</td>
                    <td>{{orderInfo.taxNumber}}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 发票信息 end -->

        <!-- 物流信息 start -->
        <div style="margin-bottom: 5px;">
            <span style="margin-left: 10px;"><strong>物流信息</strong></span>
        </div>
        <div class="panel panel-default">
            <table class="table table-bordered">
                <tbody>
                <tr class="text-center active">
                    <td>订单号</td>
                    <td>物流公司</td>
                    <td>物流单号</td>
                    <td>创建人</td>
                    <td>创建时间</td>
                </tr>
                <tr class="text-center" v-for="(item, index) in orderLogisticsEntityList">
                    <td>{{item.orderId}}</td>
                    <td>{{item.logiCompany}}</td>
                    <td>{{item.logiNo}}</td>
                    <td>{{item.createName}}</td>
                    <td>{{item.createTime}}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!-- 物流信息 end -->
    </div>

    <!-- 物流发货 -->
    <div v-show="showLogi">
        <form class="form-group">
            <!-- 订单信息 start -->
            <div class="panel panel-default">
                <div class="panel-heading">
                    订单信息
                </div>
                <div class="panel-body">
                    <div class="row" style="line-height: 25px">
                        <div class="col-md-3 text-center">订单号：{{oderInfoEntity.orderId}}</div>
                        <div class="col-md-3 text-center">会员名：{{oderInfoEntity.memberName}}</div>
                        <div class="col-md-3 text-center">订单金额：{{oderInfoEntity.totalAmount}}</div>
                        <div class="col-md-3 text-center">送货方式：{{oderInfoEntity.pickUp==true?"自提":"非自提"}}</div>
                    </div>
                </div>
            </div>
            <!-- 订单信息 end -->
            <!-- 发货信息 start -->
            <div class="panel panel-default">
                <div class="panel-heading">
                    发货信息
                </div>
                <div class="panel-body" style="line-height: 35px">
                    <div class="col-md-3" style="line-height: 45px">
                        <div class="row">
                            <div class="col-md-3 text-right"><span style="color: red">*&nbsp;</span>发货类型：</div>
                            <div class="col-md-9">
                                <el-radio-group v-model="erpLogisticsEntity.sendType" @change="sendTypeChange"
                                                size="mini">
                                    <el-radio :label="1" border>发票</el-radio>
                                    <el-radio :label="2" border>样品</el-radio>
                                    <el-radio :label="3" border>订单</el-radio>
                                </el-radio-group>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3 text-right"><span style="color: red">*&nbsp;</span>物流类型：</div>
                            <div class="col-md-9">
                                <el-radio-group v-model="erpLogisticsEntity.logiType" size="mini">
                                    <el-radio :label="1" border>呼叫快递</el-radio>
                                    <el-radio :label="2" border>添加物流</el-radio>
                                    <el-radio :label="3" border>自提</el-radio>
                                </el-radio-group>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3 text-right"><span style="color: red" v-if="erpLogisticsEntity.logiType===3?false:true">*&nbsp;</span>物流方式：</div>
                            <div class="col-md-9">
                                <el-select v-model="erpLogisticsEntity.logisticsId" @change="logiTypeChange" filterable
                                           placeholder="请选择" size="mini">
                                    <el-option v-for="item in logisticsTypeList" :key="item.logisticsId"
                                               :label="item.logisticsName" :value="item.logisticsId"/>
                                </el-select>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3" style="line-height: 45px">
                        <div class="row" v-show="showLogiNo">
                            <div class="col-md-3 text-right">配送单号：</div>
                            <div class="col-md-9">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.logiNo"
                                       placeholder="配送单号"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3 text-right">配送费用：</div>
                            <div class="col-md-9">
                                <input type="number" class="form-control input-sm" v-model="erpLogisticsEntity.logiCost"
                                       placeholder="配送费用"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3 text-right">配送备注：</div>
                            <div class="col-md-9 text-right">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.logiRemark"
                                       placeholder="配送备注"/>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="row">
                            <div class="col-md-4 text-right"><span style="color: red">*&nbsp;</span>收货人：</div>
                            <div class="col-md-8 ">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.toPeople"
                                       placeholder="收货人"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 text-right"><span style="color: red">*&nbsp;</span>收货联系方式：</div>
                            <div class="col-md-8 ">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.toPhone"
                                       value="{{oderInfoEntity.shipName}}" placeholder="收货联系方式"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 text-right"><span style="color: red">*&nbsp;</span>收货地区：</div>
                            <div class="col-md-8 ">
                                <el-cascader v-model="erpLogisticsEntity.areaCascader" placeholder="试试搜索：武汉市" size="small" filterable
                                             style="width: 100%"
                                             :options="area"
                                             @change="handleItemChange">

                                </el-cascader>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 text-right">收货地址：</div>
                            <div class="col-md-8 ">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.toAddress"
                                       placeholder="收货地址"/>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div class="row">
                            <div class="col-md-4 text-right">发货人：</div>
                            <div class="col-md-8 ">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.fromPeople"
                                       placeholder="发货人"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 text-right">联系方式：</div>
                            <div class="col-md-8 ">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.fromPhone"
                                       placeholder="联系方式"/>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-4 text-right">发货地址：</div>
                            <div class="col-md-8 ">
                                <input type="text" class="form-control input-sm" v-model="erpLogisticsEntity.fromAddress"
                                       placeholder="发货地址"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 发货信息 end -->
            <!-- 发货明细 start -->
            <div class="panel panel-default" v-show="showSendDetail">
                <div class="panel-heading">
                    发货明细
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <el-table border stripe ref="multipleTable" :data="orderItemEntityList"
                                  @selection-change="orderItemSelectionChange"
                                  tooltip-effect="dark" size="mini">
                            <el-table-column type="selection" width="55"></el-table-column>
                            <el-table-column prop="itemId" label="商品ID" width="100"></el-table-column>
                            <el-table-column prop="name" label="商品名称" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="addon" label="规格属性" show-overflow-tooltip></el-table-column>
                            <el-table-column prop="productId" label="商品编号" width="100"></el-table-column>
                            <el-table-column prop="unit" label="单位" width="60"></el-table-column>
                            <el-table-column prop="craftsNames" label="工艺" width="120"></el-table-column>
                            <el-table-column prop="nums" label="数量" width="100" fixed="right">
                                <template slot-scope="scope">
                                    <el-input type="number" v-model="scope.row.nums" size="small" min="0"
                                              :max="scope.row.nums" :value="scope.row.nums"></el-input>
                                </template>
                            </el-table-column>
                        </el-table>
                    </div>
                </div>
            </div>
            <!-- 发货明细 end -->
            <div class="grid-btn text-center">
                <a class="btn btn-primary btn-sm" @click="saveLogistics">确认保存</a>
                <a class="btn btn-warning btn-sm" @click="reback">返回</a>
            </div>
        </form>
    </div>

    <!-- 价格详情 start-->
    <el-dialog title="算价过程" :visible.sync="priceTableVisible" width="60%">
        <div class="tab_cn">
            <table>
                <tbody>
                <template v-for="item in view.quoteProductInfoList">
                    <tr>
                        <td style="width:10%; text-align:center;">
                            <div>{{item.partsName}}</div>
                        </td>
                        <td>
                            <div style="border-bottom:1px solid #898989;">
                                <i>具体参数</i>
                                <span v-if="item.basicParam != '' && item.basicParam != null">{{item.basicParam}}</span>
                                <span v-else></span>
                            </div>
                            <div>
                                <i>后工序参数</i>
                                <span v-if="item.craftParam != '' && item.craftParam != null">{{item.craftParam}}</span>
                                <span v-else></span>
                            </div>
                        </td>
                    </tr>
                </template>
                </tbody>
            </table>

            <table>
                <thead>
                <tr>
                    <td colspan="4" style="padding:10px;"></td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td style="width:8%; text-align:center;">后工序费用</td>
                    <td style="width:40%;padding:10px">{{view.totalCraftPrice}}</td>
                    <td style="width:8%; text-align:center;">利润</td>
                    <td style="width:40%;padding:10px">{{view.subtract}}</td>
                </tr>
                <tr>
                    <td style="width:8%; text-align:center;">印刷费用</td>
                    <td style="width:40%;padding:10px">{{view.totalPrintPrice}}</td>
                    <td style="width:8%; text-align:center;">总价</td>
                    <td style="width:40%;padding:10px;"><span style="color: red;font-weight: bold">{{view.totalTotalPrice}}</span>
                    </td>
                </tr>
                </tbody>
            </table>

            <!-- 商务印刷 -->
            <template v-if="view.printType == 'shangwuyinshua'">
                <table style="text-align:center; margin-top:10px;" class="table">
                    <tbody>
                    <tr>
                        <td>部件</td>
                        <td>印刷机</td>
                        <td>实际拼版尺寸</td>
                        <td>开纸类别</td>
                        <td>印刷方式</td>
                        <td>版数</td>
                        <td>拼版个数</td>
                        <td>每版印数</td>
                        <td>印刷纸张</td>
                        <td>纸价</td>
                        <td>每版印工费</td>
                        <td>后加工费用</td>
                        <td>印刷总费用</td>
                    </tr>

                    <template v-for="p in view.paperInfoList">
                        <tr>
                            <td>{{p.partName}}</td>
                            <td>{{p.printMachineName}}</td>
                            <td>{{p.cutSizes}}</td>
                            <td>{{p.kaiValue}}开</td>
                            <td>
                                <span v-if="p.printModeType != '' && p.printModeType != null">{{p.printModeType.nameType}}</span>
                            </td>
                            <td>{{p.editionNum}}</td>
                            <td>{{p.splitJointNum}}</td>
                            <td>{{p.printNum}}</td>
                            <td>{{p.paperNum}}</td>
                            <td>{{p.paperPrice}}</td>
                            <td>{{p.printPrice}}</td>
                            <td>{{p.craftPrice}}</td>
                            <td>{{p.costPrice}}</td>
                        </tr>
                    </template>
                    <tr>
                        <td colspan="13">{{view.attributeValueTypeMap}}</td>
                    </tr>
                    </tbody>
                </table>
            </template>

            <!-- 数码快印 -->
            <template v-else-if="view.printType == 'shumakuaiyin'">
                <table style="text-align:center; margin-top:10px;" class="table">
                    <tbody>
                    <tr>
                        <td>部件</td>
                        <td>印刷机</td>
                        <td>实际拼版尺寸</td>
                        <td>拼版个数</td>
                        <td>印数</td>
                        <td>纸张</td>
                        <td>纸价</td>
                        <td>组合单价</td>
                        <td>工艺费用</td>
                        <td>总费用</td>
                    </tr>

                    <template v-for="p in view.paperInfoList">
                        <tr>
                            <td>{{p.partName}}</td>
                            <td>{{p.printMachineName}{</td>
                            <td>{{p.cutSizes}{</td>
                            <td>{{p.splitJointNum}{</td>
                            <td>{{p.printNum}{</td>
                            <td>{{p.paperNum}{</td>
                            <td>{{p.paperPrice}{</td>
                            <td>{{p.printPrice}{</td>
                            <td>{{p.craftPrice}{</td>
                            <td>{{p.costPrice}{</td>
                        </tr>
                    </template>

                    <tr>
                        <td colspan="13">{{view.attributeValueTypeMap}}</td>
                    </tr>
                    </tbody>
                </table>
            </template>
        </div>

    </el-dialog>
    <!-- 价格详情 end-->

    <!-- 文件下载列表 -->
    <el-dialog title="文件下载" :visible.sync="fileTableVisible" width= "40%" >
        <el-table :data="itemFile.itemFiles" size="small">
            <el-table-column property="goodsName" label="商品名称"></el-table-column>
            <el-table-column v-if="false" property="id" label="文件ID"></el-table-column>
            <el-table-column property="name" label="文件名"></el-table-column>
            <el-table-column property="size" label="文件大小"></el-table-column>
            <el-table-column label="操作">
                <template slot-scope="scope">
                    <el-row>
                        <el-button @click="itemFileDownload(scope.row)" type="text" size="mini" icon="el-icon-download">下载</el-button>
                    </el-row>
                </template>
            </el-table-column>
        </el-table>
    </el-dialog>

</div>

<script src="${request.contextPath}/statics/js/modules/order/sellerfactoryorderinfo.js?_${.now?long}"></script>
</body>
</html>
